<template>
  <div 
    v-if="loaded"
    v-show="active"
  >
    <slot />
  </div>
</template>

<script lang="ts">
import { ref, inject } from 'vue'
import { SetPaneCallback } from './index.vue';
export default {
  name: 'cus-step-pane',
  props: {
    label: {
      type: String,
      default: '',
    },
  },
  setup(props) {
    let loaded = ref(false);

    let active = ref(false);

    const setPane = inject<SetPaneCallback>('set_pane');
    console.log(props.label);

    setPane!(props.label);

    return { loaded, active }
  }
}
</script>

<style lang="scss" scoped>

</style>